package ua.com.jpy.services.basic;

import org.bson.types.ObjectId;
import org.json.simple.JSONObject;

import ua.com.jpy.entity.IEntity;

/**
 * @author LSD25
 *
 */
public interface IJpyBasicService {
	
	IEntity getOrCreate(IEntity entity, ObjectId id);
	
	boolean delete(IEntity entityFoDelete, ObjectId id);
	
	boolean update(IEntity entityForUpdate, ObjectId id);
	
	JSONObject validate(IEntity entityToValid);
	
}
